package com.xiaoq.positionmarket.entity;

import com.xiaoq.MongoEntity;
import org.mongodb.morphia.annotations.Entity;

import java.util.List;

/**
 * Created by chenjh on 2018/4/2.
 *  距离营销
 */
@Entity(value="position_market",noClassnameStored=true)
public class PositionMarketEntity extends MongoEntity{

    private String shopId; //景区
    private String title; //消息内容
    private List<CityInfo> cityList;
    private Integer type; //1,距景区范围 2，按城市
    private Integer rangeDay;  //时间范围(当天,今天,近2天)
    private Integer rangeM; //距离范围(米)
    private Integer selectType; // 5活动海报，6旅行头条，7 优惠券
    private String selectId; //可能是活动ID，旅行头条ID，优惠券Id
    private String selectTitle; //可能是活动标题，旅行头条标题，优惠券标题
    private String selectImgUrl;//选择的图片
    private Integer triggerType; // 0：立即推送，1 定时推送
    private Long triggerTime; //触发时间
    private String triggerTimeStr; //触发时间
    private Long deleteTime; //删除时间
    private Long triggerRealTime; //实际触发的时间
    private int sendNum;  //总的推送条数

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<CityInfo> getCityList() {
        return cityList;
    }

    public void setCityList(List<CityInfo> cityList) {
        this.cityList = cityList;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getRangeDay() {
        return rangeDay;
    }

    public void setRangeDay(Integer rangeDay) {
        this.rangeDay = rangeDay;
    }

    public Integer getRangeM() {
        return rangeM;
    }

    public void setRangeM(Integer rangeM) {
        this.rangeM = rangeM;
    }

    public Integer getSelectType() {
        return selectType;
    }

    public void setSelectType(Integer selectType) {
        this.selectType = selectType;
    }

    public String getSelectId() {
        return selectId;
    }

    public void setSelectId(String selectId) {
        this.selectId = selectId;
    }

    public String getSelectTitle() {
        return selectTitle;
    }

    public void setSelectTitle(String selectTitle) {
        this.selectTitle = selectTitle;
    }

    public Integer getTriggerType() {
        return triggerType;
    }

    public void setTriggerType(Integer triggerType) {
        this.triggerType = triggerType;
    }

    public Long getTriggerTime() {
        return triggerTime;
    }

    public void setTriggerTime(Long triggerTime) {
        this.triggerTime = triggerTime;
    }

    public String getTriggerTimeStr() {
        return triggerTimeStr;
    }

    public void setTriggerTimeStr(String triggerTimeStr) {
        this.triggerTimeStr = triggerTimeStr;
    }

    public Long getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Long deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Long getTriggerRealTime() {
        return triggerRealTime;
    }

    public void setTriggerRealTime(Long triggerRealTime) {
        this.triggerRealTime = triggerRealTime;
    }

    public int getSendNum() {
        return sendNum;
    }

    public void setSendNum(int sendNum) {
        this.sendNum = sendNum;
    }

    public String getSelectImgUrl() {
        return selectImgUrl;
    }

    public void setSelectImgUrl(String selectImgUrl) {
        this.selectImgUrl = selectImgUrl;
    }
}
